<%form_for [@user,@machine] do |f|%>

  <fieldset>
    <legend>设置状态<</legend>
    <%=render :partial=>'state_form',:locals=>{:f=>f}%>
  </fieldset>
  <%=f.submit "更新"%>
<%end%>
<%form_for [@user,@machine] do |f|%>
  <fieldset>
    <legend>设置事件</legend>
    <%=render :partial=>'event_form',:locals=>{:f=>f}%>
  </fieldset>
  <%=f.submit "创建"%>
<%end%>

